{# SPDX-License-Identifier: Apache-2.0 -#}
{% extends "base.html" %}
{% block title %}
  {% trans %}Sponsors{% endtrans %}
{% endblock %}
{% block content %}
  <div class="horizontal-section">
    <div class="site-container">
      <div class="sponsorship-intro">
        <div class="sponsorship-intro__text">
          <div class="heading-wsubtitle">
            <h1 class="heading-wsubtitle__heading">{% trans %}Support PyPI and related projects{% endtrans %}</h1>
            <p class="heading-wsubtitle__subtitle">{% trans %}Sponsor the Python Software Foundation{% endtrans %}</p>
          </div>
          <p class="lede-paragraph">
            {% trans %}The Python Software Foundation raises and distributes funds to improve Python's packaging ecosystem.{% endtrans %}
          </p>
          <p>{% trans %}Recent projects funded include:{% endtrans %}</p>
          <ul class="hooray-list">
            <li>
              {% trans %}The successful relaunch of the Python Package Index, powered by the new 'Warehouse' codebase{% endtrans %}
              <br>
              <small>{% trans project_href="https://pyfound.blogspot.com/2017/11/the-psf-awarded-moss-grant-pypi.html", funder_href="https://www.mozilla.org/en-US/moss/", title=gettext('External link') %}With <a href="{{ project_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">$170,000 in funding</a> from the <a href="{{ funder_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">Mozilla Open Source Support Program</a> in 2018{% endtrans %}</small>
            </li>
            <li>
              {% trans %}Improving PyPI's security and accessibility, and adding support for multiple locales{% endtrans %}
              <br>
              <small>{% trans funder_href="https://www.opentech.fund/results/supported-projects/pypi-improvements/", title=gettext('External link') %}With $80,000 in funding from the <a href="{{ funder_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">Open Technology Fund</a> in 2019{% endtrans %}</small>
            </li>
            <li>
              {% trans %}Additional security-focused features for PyPI{% endtrans %}
              <br>
              <small>{% trans project_href="http://pyfound.blogspot.com/2018/12/upcoming-pypi-improvements-for-2019.html", funder_href="https://research.fb.com/", title=gettext('External link') %}With <a href="{{ project_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">$100,000 in funding</a> from <a href="{{ funder_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">Facebook Research</a> in 2019 and 2020{% endtrans %}</small>
            </li>
            <li>
              {% trans %}Overhauling pip's user experience and dependency resolver{% endtrans %}
              <br>
              <small>{% trans project_href="https://pyfound.blogspot.com/2019/12/moss-czi-support-pip.html", funder0_href="https://chanzuckerberg.com/eoss/", funder1_href="https://www.mozilla.org/en-US/moss/", title=gettext('External link') %}With <a href="{{ project_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">$407,000 in funding</a> from the <a href="{{ funder0_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">Chan Zuckerberg Initiative</a> and the <a href="{{ funder1_href }}"
    title="{{ title }}"
    target="_blank"
    rel="noopener">Mozilla Open Source Support Program</a> in 2020{% endtrans %}</small>
            </li>
          </ul>
          <p>
            {% trans %}With your support, the PSF can continue to fund packaging improvements, benefiting millions of Python users around the world.{% endtrans %}
          </p>
        </div>
        <div class="sponsorship-intro__donations sponsor-package">
          <div class="sponsor-package__header">
            <div class="sponsor-package__icon">
              <i class="fas fa-donate" aria-hidden="true"></i>
            </div>
            <h2>{% trans %}PSF Sponsorship{% endtrans %}</h2>
          </div>
          <div class="sponsor-package__body">
            <p>
              {% trans %}All of these initiatives help maintain and support the tools that the Python community uses daily. This work can only be done with the generous financial support that you or your organization provides.{% endtrans %}
            </p>
            <p>{% trans %}Your contributions matter and they make an impact. Every donation counts!{% endtrans %}</p>
          </div>
          <div class="sponsor-package__button">
            <a class="button button--primary"
               href="https://www.python.org/sponsors/application/"
               title="{% trans %}External link{% endtrans %}"
               target="_blank"
               rel="noopener">{% trans %}Become a sponsor{% endtrans %}</a>
            <small>{% trans %}The PSF is recognized by the IRS as a 501(c)(3) non-profit charitable organization, and donations are tax-deductible for organizations that pay taxes in the United States.{% endtrans %}</small>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="horizontal-section horizontal-section--grey horizontal-section--thin">
    <div class="site-container">
      <div class="sponsorship-benefits">
        <div class="sponsorship-benefits__benefit">
          <h3>{% trans %}Get your logo on PyPI.org{% endtrans %}</h3>
          <p>
            {% trans %}Looking for brand visibility? In the last year*, 21.1 million people from 237 countries visited PyPI.org.{% endtrans %}
          </p>
          <p>
            <small>{% trans %}* Data as of March 2020{% endtrans %}</small>
          </p>
        </div>
        <div class="sponsorship-benefits__benefit">
          <h3>{% trans %}Strengthen the Python ecosystem{% endtrans %}</h3>
          <p>
            {% trans %}Funds raised by the Python Software Foundation go directly towards improving the tools your company uses every day.{% endtrans %}
          </p>
        </div>
        <div class="sponsorship-benefits__benefit">
          <h3>{% trans %}Boost your reputation{% endtrans %}</h3>
          <p>{% trans %}Enhance your company's reputation by investing in Python and the open source community.{% endtrans %}</p>
        </div>
      </div>
    </div>
  </div>
  <section class="horizontal-section">
    <div class="site-container">
      <div class="centered-heading">
        <h1 class="centered-heading__title">PSF sponsors</h1>
        <p class="centered-heading__subtitle">
          We are immensely grateful to the following organizations for their support of the Python Software Foundation
        </p>
        <hr class="centered-heading__rule">
      </div>
      <div class="sponsor-grid sponsor-grid--bottom-margin">
        <div class="sponsor-grid__sponsor sponsor-grid__sponsor--invitation">
          <div class="sponsor-grid__sponsor-img">
            <img src="{{ request.static_path('warehouse:static/dist/images/yourlogo.png') }}"
                 alt="Your logo here">
          </div>
          <h2 class="sponsor-grid__sponsor-name">Your company here</h2>
          <div class="sponsor-grid__sponsor-activity">
            <p>Sponsor the Python Software Foundation today!</p>
          </div>
          <a href="https://www.python.org/sponsors/application/"
             target="_blank"
             rel="noopener"
             class="sponsor-grid__sponsor-link button button--primary">See sponsorship packages</a>
        </div>
        {% for sponsor in request.sponsors %}
          {% if sponsor.psf_sponsor %}
            <div class="sponsor-grid__sponsor">
              <div class="sponsor-grid__sponsor-img">{{ sponsor.color_logo_img|camoify|safe }}</div>
              <div class="sponsor-grid__sponsor-description">
                <h2 class="sponsor-grid__sponsor-name">{{ sponsor.name }}</h2>
                <div class="sponsor-grid__sponsor-activity">{{ sponsor.activity|safe }}</div>
              </div>
              <a href="{{ sponsor.link_url }}"
                 target="_blank"
                 rel="noopener"
                 class="sponsor-grid__sponsor-link button">Visit {{ sponsor.name }}</a>
            </div>
          {% endif %}
        {% endfor %}
      </div>
      <div class="centered-heading">
        <h2 class="centered-heading__title">Infrastructure sponsors</h2>
        <p class="centered-heading__subtitle">
          The following sponsors donate infrastructure that keeps PyPI up and running for millions of users across the globe
        </p>
        <hr class="centered-heading__rule">
      </div>
      <div class="sponsor-grid sponsor-grid--bottom-margin">
        {% for sponsor in request.sponsors | sort(attribute="name") %}
          {% if sponsor.infra_sponsor %}
            <div class="sponsor-grid__sponsor">
              <div class="sponsor-grid__sponsor-img">{{ sponsor.color_logo_img|camoify|safe }}</div>
              <div class="sponsor-grid__sponsor-description">
                <h2>{{ sponsor.name }}</h2>
                <div class="sponsor-grid__sponsor-activity">{{ sponsor.activity|safe }}</div>
              </div>
              <a href="{{ sponsor.link_url }}"
                 target="_blank"
                 rel="noopener"
                 class="sponsor-grid__sponsor-link button">Visit {{ sponsor.name }}</a>
            </div>
          {% endif %}
        {% endfor %}
      </div>
      <div class="centered-heading">
        <h2 class="centered-heading__title">One-time donors</h2>
        <p class="centered-heading__subtitle">
          We are thankful to our one-time donors for their support of the Python Package Index
        </p>
        <hr class="centered-heading__rule">
      </div>
      <div class="sponsor-grid">
        <div class="sponsor-grid__sponsor sponsor-grid__sponsor--invitation">
          <div class="sponsor-grid__sponsor-img">
            <img src="{{ request.static_path('warehouse:static/dist/images/yourlogo.png') }}"
                 alt="Your logo here">
          </div>
          <h2 class="sponsor-grid__sponsor-name">Your company here</h2>
          <div class="sponsor-grid__sponsor-activity">
            <p>Would you like to fund a specific development to make Python packaging better?</p>
            <p>
              Contact the <a href="mailto:project-funding-wg@python.org">Project Funding Working Group</a> to discuss how we can partner with you.
            </p>
          </div>
          <a href="https://github.com/psf/fundable-packaging-improvements/blob/master/FUNDABLES.md"
             target="_blank"
             rel="noopener"
             class="sponsor-grid__sponsor-link button button--primary">See funding suggestions</a>
        </div>
        {% for sponsor in request.sponsors %}
          {% if sponsor.one_time %}
            <div class="sponsor-grid__sponsor">
              <div class="sponsor-grid__sponsor-img">{{ sponsor.color_logo_img|camoify|safe }}</div>
              <div class="sponsor-grid__sponsor-description">
                <h2>{{ sponsor.name }}</h2>
                <div class="sponsor-grid__sponsor-activity">{{ sponsor.activity|safe }}</div>
              </div>
              <a href="{{ sponsor.link_url }}"
                 target="_blank"
                 rel="noopener"
                 class="sponsor-grid__sponsor-link button">Visit {{ sponsor.name }}</a>
            </div>
          {% endif %}
        {% endfor %}
      </div>
    </div>
  </section>
{% endblock %}
